How to Use this Chapter
This chapter describes each of WebObject's dynamic elements and gives working examples of their use. To learn how to use a particular element, click its name in the table of contents to display the declaration page. For example, WOHyperlink's declaration page looks like this:
WOHyperlink
Synopsis
WOHyperlink{action=aMethod | href=aURL | pageName=aString; [string=aString;] [disabled=YES|NO;] ...};
Description
WOHyperlink generates a hypertext link in an HTML document.
- action
-
An action invocation to WebObjects.
- href
-
Specifies a hypertext URL that's external to WebObjects.
- string
-
Specifies the text displayed for the anchor -- the text between
<A> and </A>. Optional Field.
- disabled
-
If evaluates to YES, the content string is displayed, but the hyperlink is not active.
- pageName
-
Specifies the WebObjects page name to return when the anchor
is clicked on.
Examples
The major sections of the declarations page contain this information:
- Synopsis lists the element's various attributes. (Square brackets surrounding an attribute indicate that it is optional. Attributes separated by the "|" are mutually exclusive.)
- Description starts with a functional description of the element as a whole, and then details each of its attributes.
- Examples provides one or more links to sample programs that use this element. Each example lets you examine the three source files associated with dynamic elements: the HTML template, the declarations file, and the script file.